package com.fzfnn.scrapbook.controller;

import com.fzfnn.scrapbook.service.LogService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
@Tag(name = "日志接口", description = "日志功能接口")
public class LogController {
    @Autowired
    private LogService logService;

    @GetMapping("/loginlogs")
    @Operation(summary = "获取登录日志")
    public Object getLoginlogs() {
        return logService.getLoginlogs();
    }

}
